﻿namespace AnyOffice.Model
{
    using System;

    public class GroupData
    {
        protected int _groupId = -1;
        protected string _groupNo = string.Empty;
        protected string _name = string.Empty;
        protected string _userId = string.Empty;
        protected object _userStr;

        public int GroupId
        {
            get
            {
                return this._groupId;
            }
            set
            {
                this._groupId = value;
            }
        }

        public string GroupNo
        {
            get
            {
                return this._groupNo;
            }
            set
            {
                this._groupNo = value;
            }
        }

        public string Name
        {
            get
            {
                return this._name;
            }
            set
            {
                this._name = value;
            }
        }

        public string UserId
        {
            get
            {
                return this._userId;
            }
            set
            {
                this._userId = value;
            }
        }

        public string UserStr
        {
            get
            {
                return (string) this._userStr;
            }
            set
            {
                this._userStr = value;
            }
        }

        public bool UserStrIsNull
        {
            get
            {
                return (this._userStr == null);
            }
            set
            {
                if (value)
                {
                    this._userStr = null;
                }
            }
        }
    }
}

